import { uIOhook, UiohookKey } from 'uiohook-napi'
// 监听鼠标和键盘事件
uIOhook.on('keydown', (e) => {
    if (e.keycode === UiohookKey.Q) {
        console.log('Hello!')
    }

    if (e.keycode === UiohookKey.Escape) {
        process.exit(0)
    }
})

uIOhook.start()